package com.tangcco.biz.impl;

import com.tangcco.biz.MusicBiz;
import com.tangcco.dao.MusicMapper;
import com.tangcco.pojo.Music;
import com.tangcco.pojo.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("musicBiz")
public class MusicBizImpl implements MusicBiz {
	@Resource
	private MusicMapper musicMapper;
	@Override
	public List<Music> selectBySingerId(String sId, Page page) {
		return musicMapper.selectBySingerId(sId, page);
	}

	@Override
	public int selectCountBySingerId(String sId) {
		return musicMapper.selectCountBySingerId(sId);
	}

	@Override
	public Music selectById(String musicRid) {
		return musicMapper.selectById(musicRid);
	}

}
